package com.android.li.temperature;

import android.app.Application;
import android.content.Intent;

import com.android.li.temperature.data.DataModel;
import com.android.li.temperature.service.PhoneStatusService;

public class MyApplication extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        DataModel.getDataModel().setContext(getApplicationContext());
        // 应用fork时启动服务
        startService(new Intent(this, PhoneStatusService.class));
    }
}
